package io.hilo.example;

import org.hilo.boot.app.config.MainApplication;
import org.springframework.context.annotation.ComponentScan;

import io.hilo.admin.AdminBootstrapConfig;

/**
 * Spring Boot 应用启动类
 * 
 */
//扫描Spring Bean
@ComponentScan({ StartApplicationAdmin.APP_PACKAGE })
// 扫描自定义路径的Mybatis Mapper
@tk.mybatis.spring.annotation.MapperScan({ StartApplication.APP_PACKAGE + ".*.dao" })
public class StartApplicationAdmin extends AdminBootstrapConfig {
    // 此扫描路径为Demo示意，请根据实际情况修改（和添加）
    public static final String APP_PACKAGE = "io.hilo.example";

    public static void main(String[] args) {
        
        MainApplication.run(
                StartApplication.class, 
                "--spring.profiles.active=base,dbbase,dbweb,admin,log,dev");
    }

}
